﻿namespace System
{
    using System.Runtime.CompilerServices;
    /// <summary>
    /// 进度事件的参数
    /// </summary>
    public class ProgressEventArgs : EventArgs
    {
        [Obsolete]
        public ProgressEventArgs(int current, double percent, System.ActionResult result)
        {
            this.Current = current;
            this.ActionResult = result;
            this.Percent = percent;
        }

        public ProgressEventArgs(int current, int count, double percent, System.ActionResult result)
        {
            this.Current = current;
            this.ActionResult = result;
            this.Percent = percent;
            this.Count = count;
        }

        public System.ActionResult ActionResult { get; set; }

        public int Count { get; set; }

        public int Current { get; set; }

        public double Percent { get; set; }
    }
}

